<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:92:"/app/wwwroot/zhangwei/www/gongzi/public/../application/index/view/manage/payslip_detail.html";i:1703583487;s:74:"/app/wwwroot/zhangwei/www/gongzi/application/index/view/layout/manage.html";i:1671875144;s:74:"/app/wwwroot/zhangwei/www/gongzi/application/index/view/common/script.html";i:1671875145;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head class="layui-layout-body">
    <meta charset="utf-8">
    <title><?php echo htmlentities($site['name']); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit">
    <link href="/assets/css/frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version')); ?>" rel="stylesheet">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
    <script src="/assets/js/html5shiv.js"></script>
    <script src="/assets/js/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        var require = {
            config: <?php echo json_encode($config); ?>
        };
    </script>
</head>
<body class="layui-layout-body" id="layer1">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-nav layui-layout-right">
            <div class="head_img"><img src="<?php echo cdnurl(htmlentities($user['avatar'])); ?>" alt=""/><?php echo $user['nickname']; ?></div>
        </div>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧垂直导航区域-->
            <div class="logo"><img src="/assets/manage/images/logo.png" width="64" height="64" alt=""/></div>
            <ul class="layui-nav nav">
                <?php if($auth->check('manage/index')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/index'); ?>">
                    <a href="<?php echo url('manage/index'); ?>"><i class="iconfont icon-shouye"></i>首页</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_add')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_add'); ?>">
                    <a href="<?php echo url('manage/payslip_add'); ?>"><i class="iconfont icon-gongzitiao"></i>新增工资条</a>
                </li>
                <?php endif; if($auth->check('manage/index')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_list'); ?>">
                    <a href="<?php echo url('manage/payslip_list'); ?>"><i class="iconfont icon-fasongxiaoxi"></i>发送记录</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_feedback')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_feedback'); ?>">
                    <a href="<?php echo url('manage/payslip_feedback'); ?>"><i class="iconfont icon-xinxi"></i>反馈查看</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_settings')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_settings'); ?>">
                    <a href="<?php echo url('manage/payslip_settings'); ?>"><i class="iconfont icon-shezhi2"></i>发放设置</a>
                </li>
                <?php endif; if($auth->check('manage/address_book')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/address_book'); ?>">
                    <a href="<?php echo url('manage/address_book'); ?>"><i class="iconfont icon-bg-maillist"></i>通讯录</a>
                </li>
                <?php endif; ?>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <div class="content">
    <div class="layui-card ">
        <div class="search_box">
            <form id="search-form" class="layui-form layui-clear" role="form" data-toggle="validator" method="GET" action="<?php echo url('manage/payslip_detail', ['id' => $payslip['id']]); ?>">
                <div class="fsjl_title"><a class="layui-icon layui-icon-left" href="<?php echo url('manage/payslip_list'); ?>"></a><?php echo htmlentities($payslip['title']); ?></div>
                <div class="search_input">
                    <input type="text" name="keywords" value="<?php echo htmlentities($keywords); ?>" placeholder="请输入员工姓名、手机号搜索" class="layui-input">
                    <button type="submit" class="search_icon iconfont icon-sousuo"></button>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-inline">
                        <select name="status" lay-filter="status">
                            <option value="">请选择状态</option>
                            <option value="1"<?php if($status == 1): ?> selected<?php endif; ?>>等待发送</option>
                            <option value="2"<?php if($status == 2): ?> selected<?php endif; ?>>发送成功</option>
                            <option value="3"<?php if($status == 3): ?> selected<?php endif; ?>>发送失败</option>
                        </select>
                    </div>
                </div>
                <input type="hidden" name="page" value="<?php echo $lists['current_page']; ?>">
                <div class="but">
                    <a class="layui-btn layui-btn-determine export_but" data-id="<?php echo $payslip['id']; ?>">导出</a>
                    <a class="layui-btn layui-btn-determine resend_but" data-id="<?php echo $payslip['id']; ?>">全部重发</a>
                </div>
            </form>
        </div>
        <div class="layui-card-body">
            <table class="layui-table" lay-skin="line" lay-even="">
                <thead>
                <tr>
                    <th width="40">序号</th>
                    <th>姓名</th>
                    <th>部门</th>
                    <th>职位</th>
                    <th>账号</th>
                    <th>手机号码</th>
                    <th>发送时间</th>
                    <th>查看状态</th>
                    <th>状态</th>
                    <th width="130">操作</th>
                </tr>
                </thead>
                <tbody>
                <?php if($lists['data']): foreach($lists['data'] as $key => $item): ?>
                <tr>
                    <td><?php echo $lists['per_page'] * ($lists['current_page'] - 1) + $key + 1; ?></td>
                    <td><?php echo (isset($item['nickname']) && ($item['nickname'] !== '')?$item['nickname']:'-'); ?></td>
                    <td><?php echo (isset($item['department_name']) && ($item['department_name'] !== '')?$item['department_name']:'-'); ?></td>
                    <td><?php echo (isset($item['position']) && ($item['position'] !== '')?$item['position']:'-'); ?></td>
                    <td><?php echo (isset($item['username']) && ($item['username'] !== '')?$item['username']:'-'); ?></td>
                    <td><?php echo (isset($item['mobile']) && ($item['mobile'] !== '')?$item['mobile']:'-'); ?></td>
                    <td><?php echo (isset($item['sendtime_text']) && ($item['sendtime_text'] !== '')?$item['sendtime_text']:'-'); ?></td>
                    <td><?php echo !empty($item['is_view'])?'<span class="color_4873C1">已查看</span>' : '<span class="color_EF4033">未查看</span>'; ?></td>
                    <td class="status_<?php echo $item['status']; ?>"><?php echo (isset($item['status_text']) && ($item['status_text'] !== '')?$item['status_text']:'-'); ?></td>
                    <td>
                        <a data-id="<?php echo $payslip['id']; ?>" data-logs_id="<?php echo $item['id']; ?>" class="ck_but">查看</a> |
                        <a data-id="<?php echo $payslip['id']; ?>" data-logs_id="<?php echo $item['id']; ?>" class="edit_but">编辑</a> |
                        <a data-id="<?php echo $payslip['id']; ?>" data-logs_id="<?php echo $item['id']; ?>" class="send_but color_EF4033">重发</a>
                    </td>
                </tr>
                <?php endforeach; endif; ?>
                </tbody>
            </table>
            <div id="laypage" data-total="<?php echo $lists['total']; ?>" data-per_page="<?php echo $lists['per_page']; ?>" data-current_page="<?php echo $lists['current_page']; ?>"></div>
        </div>
        <div class="fsjl_tag">
            <span>发放状态 : <?php echo $payslip['status_text']; ?></span>
            <span>总人数：<?php echo $lists['total']; ?>人</span>
            <span>已发放：<?php echo $statistics_1; ?>条</span>
            <span>未发放：<?php echo $statistics_2; ?>条</span>
            <span>已查看：<?php echo $statistics_3; ?>人</span>
            <span>已反馈：<?php echo $statistics_4; ?>人</span>
        </div>
    </div>
</div>

<div class="pop ck_pop">
    <div class="pop_content fsjl_p_content">
        <div class="layui-card-body">
            <div class="fsjl_header"><img src="/assets/manage/images/fsjl_img01.jpg" alt=""/></div>
            <div class="fsjl_content"></div>
            <div class="fsjl_bottom"><img src="/assets/manage/images/fsjl_img02.jpg" alt=""/></div>
        </div>
    </div>
</div>

<div class="pop edit_pop">
    <div class="pop_content fsjl_p_content">
        <div class="layui-card-body">
            <div class="fsjl_header"><img src="/assets/manage/images/fsjl_img01.jpg" alt=""/></div>
            <div class="fsjl_content"></div>
            <div class="fsjl_bottom"><img src="/assets/manage/images/fsjl_img04.jpg" alt=""/></div>
        </div>
    </div>
</div>

<script type="text/html" id="view_tpl">
    <div class="fsjl_title"><i class="layui-icon layui-icon-left"></i>工资条详情</div>
    <div class="fsjl_content01">
        <div class="fsjl_item">
            <h3><%=data['payslip_total']%></h3>
            <p>本月实发工资</p>
        </div>
        <div class="fsjl_item2">
            <div class="f_item_title active"><?php echo (isset($payslip_type[$payslip['payslip_type']]) && ($payslip_type[$payslip['payslip_type']] !== '')?$payslip_type[$payslip['payslip_type']]:''); ?><i class="layui-icon layui-icon-up"></i></div>
            <div class="item_list show">
                <% for(i = 0; i < data['list'].length; i ++) { %>
                <div class="item">
                    <span><%=data['list'][i]['name']%></span>
                    <b><%=data['list'][i]['value']%>　</b>
                </div>
                <% } %>
            </div>
            <div class="item">
                <span>实发金额（元）</span>
                <div class="amount"><%=data['payslip_total']%></div>
            </div>
        </div>
    </div>
</script>

<script type="text/html" id="edit_tpl">
    <div class="fsjl_title"><i class="layui-icon layui-icon-left"></i>工资条详情</div>
    <div class="fsjl_content01">
        <div class="fsjl_item">
            <h3><%=data['payslip_total']%></h3>
            <p>本月实发工资</p>
        </div>
        <div class="fsjl_item2">
            <div class="f_item_title active"><?php echo (isset($payslip_type[$payslip['payslip_type']]) && ($payslip_type[$payslip['payslip_type']] !== '')?$payslip_type[$payslip['payslip_type']]:''); ?><i class="layui-icon layui-icon-up"></i></div>
            <div class="item_list show">
                <% for(i = 0; i < data['list'].length; i ++) { %>
                <div class="item">
                    <span><%=data['list'][i]['name']%></span>
                    <input type="text" value="<%=data['list'][i]['value']%>" data-name="payslip_json[<%=data['list'][i]['name']%>]" class="field">
                </div>
                <% } %>
            </div>
            <div class="item">
                <span>实发金额（元）</span>
                <input type="text" value="<%=data['payslip_total']%>" data-name="payslip_total" class="amount field">
            </div>
        </div>
    </div>
    <div class="but"><a class="layui-btn save_but" data-id="<%=data['id']%>">确认修改</a></div>
</script>
    </div>
</div>
<link rel="stylesheet" href="/assets/manage/layui/css/layui.css">
<link rel="stylesheet" href="/assets/manage/css/css.css?v=<?php echo htmlentities(\think\Config::get('site.version')); ?>">
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_3789954_npmbld8fjlc.css">
<script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
</body>
</html>